<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        function f() {
            var a = document.getElementById('t');
            a.style.marginTop = Math.floor(Math.random()*(39-1))+1+"%";
            a.style.marginLeft = Math.floor(Math.random()*(82-1))+1+"%";
        }
    </script>
</head>
<body>
    <img src="图片4.png" id="t" onmouseover="f()" style="margin-left: 82%;margin-top: 39%">
</body>
</html>